package com.ljh.booksysms.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.SqlSession;

import com.ljh.booksysms.dao.BookInfoMapper;
import com.ljh.booksysms.service.BookInfoService;
import com.ljh.booksysms.util.MyBatisUtil;

public class BookInfoServiceImpl implements BookInfoService {
	SqlSession session;

	public List<Map<String, Object>> findAll(Map<String, Object> resultMap) {
		session = MyBatisUtil.init(session);
		BookInfoMapper biMapper = session.getMapper(BookInfoMapper.class);
		List<Map<String, Object>> list= biMapper.findAll(resultMap);
		MyBatisUtil.close(session);
		return list;
	}

}
